<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      /* td {
        border: 1px solid red;
      } */
    </style>
  </head>
  <body>
    <script>
      /* var d = new Date().getDate();
      var x = "";
      switch (d) {
        case 6:
          x = "今天周六";
        // break;
        case 0:
          x = "今天周天";
        // break;
        default:
          x = "期待周末";
        // break;
      }
      console.log(x); */
      document.write("<table>");
      for (let i = 1; i <= 9; i++) {
        document.write("<tr>");
        for (let j = 1; j <= i; j++) {
          document.write("<td>" + i + "x" + j + "=" + i * j + "</td>");
        }
        document.write("</tr>");
      }
      document.write("</table>");
    </script>
  </body>
</html>
